<template>
  <view class="sharing-container">
    <!-- 导航栏 -->
    <view class="nav-bar">
      <view class="nav-content">
        <view class="nav-left" @tap="handleBack">
          <text class="back-icon">‹</text>
        </view>
        <text class="nav-title">设备分享</text>
        <view class="nav-right"></view>
      </view>
    </view>

    <!-- 主要内容 -->
    <view class="main-content">
      <text class="page-title">设备分享管理</text>
      <text class="page-desc">管理设备的分享权限</text>
    </view>

    <!-- 底部安全区域 -->
    <view class="safe-area-bottom"></view>
  </view>
</template>

<script>
export default {
  methods: {
    handleBack() {
      uni.navigateBack()
    }
  }
}
</script>

<style scoped>
.sharing-container {
  min-height: 100vh;
  background: var(--bg-primary);
}

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.nav-content {
  display: flex;
  align-items: center;
  padding: var(--status-bar-height, 20px) 40rpx 20rpx;
}

.nav-left {
  width: 80rpx;
}

.back-icon {
  font-size: 48rpx;
  color: var(--text-primary);
}

.nav-title {
  flex: 1;
  text-align: center;
  font-size: 36rpx;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-right {
  width: 80rpx;
}

.main-content {
  padding-top: calc(var(--status-bar-height, 20px) + 140rpx);
  padding: calc(var(--status-bar-height, 20px) + 140rpx) 40rpx 40rpx;
  text-align: center;
}

.page-title {
  font-size: 32rpx;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16rpx;
  display: block;
}

.page-desc {
  font-size: 28rpx;
  color: var(--text-secondary);
  display: block;
}

.safe-area-bottom {
  height: env(safe-area-inset-bottom);
}
</style>
